package com.demo.component;

import com.demo.domain.Cat;
import com.demo.domain.Dog;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Configuration;

@Configuration
//@ConditionalOnClass(name = "Cat")
//@ConditionalOnClass(Cat.class)
@ConditionalOnMissingBean({Dog.class,Cat.class})
public class MyConditionBean {
    public MyConditionBean(){
        System.out.println("MyConditionBean init...");
    }
}
